package cn.edu.java.internet;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class SocketClient {
    public static void main(String[] args) throws IOException {
        Socket host = new Socket("localhost", 88);

        OutputStream outputStream = host.getOutputStream();

        outputStream.write("Hello".getBytes());

        host.close();
    }
}
